package com.kzj.common.exception;

public class SystemException extends RuntimeException{
    private ExceptionEnum exceptionEnum;
    public SystemException(ExceptionEnum exceptionEnum){
        this.exceptionEnum=exceptionEnum;
    }

    @Override
    public String getMessage() {
        return "系统异常："+exceptionEnum.getMsg()+" ,错误编号："+exceptionEnum.getCode();
    }
}
